//
// C++ Interface: activitytablemodel
//
// Description:
//
//
// Author: Willi Ballenthin <wilbal1087@gmail.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef ACTIVITYTABLEMODEL_H
#define ACTIVITYTABLEMODEL_H

#include "activity.h"

#include <QAbstractTableModel>
#include <QObject>
#include <QtCore>

/**
    @author Willi Ballenthin <wilbal1087@gmail.com>
*/
class ActivityTableModel : public QAbstractTableModel
{
        Q_OBJECT
    public:
        ActivityTableModel ( QVector<Activity>* vector, QObject *parent = 0 );

        ~ActivityTableModel();

        int      rowCount ( const QModelIndex & parent = QModelIndex() ) const;
        int      columnCount ( const QModelIndex & parent = QModelIndex() ) const;
        QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const;
        QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;


    private:
        QVector<Activity>* vector;
};

#endif
